import Vue from 'vue'
import VueRouter from 'vue-router'



Vue.use(VueRouter)



const routes = [

    { path: '/', redirect: '/login' },
    { path: '/login', component: () => import('../view/Login/Login.vue') },
    {
        path: '/home', component: () => import('../view/Home/Home.vue'), children: [
            { path: '/home/data', component: () => import('../view/Home/Data/Data.vue') },
            { path: '/home/banner', component: () => import('../view/Home/App/Banner.vue') },
            { path: '/home/management', component: () => import('../view/Home/Book/Management.vue') },
            { path: '/home/registration', component: () => import('../view/Home/Book/Registration.vue') },
            { path: '/home/plate', component: () => import('../view/Home/App/Plate.vue') }
        ]
    }
]

const router = new VueRouter({
    base: process.env.BASE_URL,
    routes,
})

export default router